package shiwu;

/**
 * Created by mc on 2016/8/4.
 */
public class zhengze
{
    public static void main(String[] arges)
    {
        check1();
    }
    public static void check1()
    {
        String a = "123456789";
        String regex = "[1-9][0-9]{4,14}";
        boolean flag=a.matches(regex);
        if(flag)
            System.out.println(a+"ok");
        else
            System.out.println(a+"不合法");
    }
}
